<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'judiciary-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'userID'); ?>
		<?php echo $form->textField($model,'userID'); ?>
		<?php echo $form->error($model,'userID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'jd_title'); ?>
		<?php echo $form->textField($model,'jd_title',array('size'=>60,'maxlength'=>500)); ?>
		<?php echo $form->error($model,'jd_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'jd_desc'); ?>
		<?php echo $form->textArea($model,'jd_desc',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'jd_desc'); ?>
	</div>

        <div class="row">
		<?php echo $form->labelEx($model,'jd_type'); ?>
		<?php echo $form->dropDownList($model,'jd_type',  CHtml::listData(JobType::model()->findAll(), 'jtID', 'job_type'),array('empty'=>'Select Job Type')); ?>
		<?php echo $form->error($model,'jd_type'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'enable'); ?>
		<?php echo $form->dropDownList($model,'enable', array('1'=>'Yes','0'=>'No')); ?>
		<?php echo $form->error($model,'enable'); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->